package WinterHomework.day16;

import java.util.Arrays;
import java.util.Scanner;

//牛客KY68号问题，字符串内排序
public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String s = scanner.next();
            char[] ch = s.toCharArray();
            for (int i = 0; i < s.length()-1; i++) {
                boolean isSwap = true;
                for (int j = 0; j < s.length() - i - 1 ; j++) {
                    if (ch[j] > ch[j + 1]) {
                        char temp = ch[j];
                        ch[j] = ch[j + 1];
                        ch[j + 1] = temp;
                        isSwap = false;
                    }
                }
                if (isSwap) {
                    break;
                }
            }
            String ret = new String(ch);
            System.out.println(ret);
        }
    }
}
